package cn.group7.padserver.dao;

import cn.group7.padserver.pojo.Reserve;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 谷汉斌
 * @description
 * @createTime 2024/8/4 下午2:36
 */
@Mapper
public interface ReserveDao {
    /**
     * 添加预约
     *
     * @param reserve 预约对象
     * @return 添加成功返回1，否则返回0
     */
    Integer insertSelective(Reserve reserve);

    Reserve selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Reserve reserve);

    int deleteByPrimaryKey(Integer id);

    List<Reserve> selectByReserve(Reserve reserve);
}
